# tile是瓷砖，意思是把矩阵展开
import numpy as np

mat=np.array([[1,2],[3,4]])

np.tile(mat,(1,4))
>>>array([[1, 2, 1, 2, 1, 2, 1, 2],
       [3, 4, 3, 4, 3, 4, 3, 4]])